package com.haircut.project.vo.catetory;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
public class CategoryOptVo {
    /**
     * id
     */
    @ApiModelProperty("id")
    private String id;
    /**
     * 分类名称
     */
    @ApiModelProperty("分类名称")
    @NotBlank(message = "分类名称必须填写")
    @Length(min = 1,max = 90,message = "分类名称的范围[0~90]")
    private String categoryName;
    /**
     * 上级分类
     */
    @ApiModelProperty("上级id")
    @NotBlank(message = "上级分类必须填写")
    private String parentId;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @Range(min = 0,max = 9999,message = "排序范围[0~9999]")
    private Integer sortNum;
}
